Add Coach-inspired session quality scoring and insights - #645
Conversation
roborev: Combined Review (
|
|
I think my only feedback right now is that I would probably like to see the all the recommendations first and then be presented with the detailed data. |
1c68fc1 to
b10b1d1
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
|
rebasing |
c00b82d to
215791f
Compare
roborev: Combined Review (
|
215791f to
ffb1e65
Compare
roborev: Combined Review (
|
ffb1e65 to
5baa768
Compare
roborev: Combined Review (
|
roborev: Combined Review (
|
- Add deterministic session heuristic scorers - fix: recognize search tool context in heuristics - Persist quality heuristic signals - Fix quality signal review gaps - Add deterministic quality insights dashboard - Fix quality insights review findings - Surface all deterministic quality pattern signals - Add opt-in canned LLM insights - Fix canned insight review findings - Normalize canned insight focus before caching - Add Coach-derived inputs for canned insights - Fix canned Coach insight cache stability - Add quality rollout validation scaffolding - Update quality rollout e2e after restack - Fix quality rollout review findings - Document quality validation gaps - Add generated insight deep links - Report canned insight validation details - Add insight session scope controls - Use icon actions for generated insight deletion - Widen insights project filter typeahead - Clarify generated insight generator choices - Feed model breakdowns to cost insights - Fix automated scope review findings - Fix insights toolbar responsive height - Compact insights project filter - Stabilize insights scope dropdown width - Clarify context setup pressure coverage - Require failures for tool-cycle signal - Add calibrated insight evidence drilldowns - Unify date range selector state - Narrow short-start quality signal - Fix insight evidence review findings - Add phase 6 RFC screenshots - Scope canned insights to dashboard filters - Restore generated analytics API parity - Scope usage summaries to termination filters - Align backend analytics filters - Align DuckDB usage and signal evidence filters - fix: align canned coach timezone filtering - fix: validate canned insight timezones - fix: count tool reliability driver sessions - test: expect browser timezone in canned insight retry call - fix: trim comma-separated agent filters in SQLite analytics - fix: align insight automated scope and usage activity filters - fix: align SQLite termination filter and insights automated scope - fix: honor automated scope in DuckDB usage filters
Canned insight requests still expose the top-level timezone field, and generated clients can send it without a nested filters object. Normalization previously defaulted canned filters to UTC before consulting that field, so cache keys and local-day aggregates diverged from the requested browser timezone. Use the top-level timezone as the fallback whenever filters.timezone is absent, while preserving the nested filter timezone as the explicit override.
c3cb4b1 to
8cbccbc
Compare
roborev: Combined Review (
|
Runtime session responses already include grouped quality signal data, but the OpenAPI schema hid that field from generated clients. That left frontend callers without the typed quality_signals object even though the server returned it. Signal evidence sessions also need to remain a non-null typed array in the schema so client generation keeps DbSignalSessionExample instead of collapsing the field to any[].
roborev: Combined Review (
|
This PR adds session-quality measurement to
agentsview. It turns archived sessions into inspectable quality signals: deterministic scoring for behavior that can be measured locally, plus opt-in generated recommendations that summarize those facts without becoming canonical score data.The core goal is explainable review. Quality labels should be backed by stored signal counts, filtered evidence, score explanations, and session drilldowns so reviewers can decide whether the measurements are useful before treating them as calibrated defaults.
Source Inspiration
This work was shaped by Microsoft's AI Engineering Coach, especially its rule catalog, scoring detector, insights analyzer, and metric definitions.
The
agentsviewimplementation adapts those ideas to a local, multi-agent session archive. Coach-inspired rules such as lazy prompting, missing file context, repeated prompts, missing spec structure, runaway loops, prompt maturity, premium-model waste, and sustainable-work-pattern signals were reviewed and then sorted into deterministic scoring, aggregate analytics, generated-insight inputs, already-covered behavior, or blocked future work depending on the data available inagentsview.That distinction is intentional: this PR borrows the framing and rule inventory, but it does not make Copilot/VS Code-specific assumptions or use an LLM as the source of truth for score computation.
What This Adds
agentsviewsignal families, including what is scoreable now, what belongs in analytics or generated insights, and what is blocked by missing metadata.Important Boundaries
Screenshots
Review Focus
Remaining Rollout Work
Before treating this as final calibration, run a representative local archive pass and record score deltas, threshold crossings, false-positive themes, runtime impact, and source diversity. The added rollout document captures the expected report shape and the contract checklist for future signal/API changes.